{include file="common/right_nav" recommend="文章" }
<!-- 主要内容 -->
<div class="main article">
    <div class="layui-tab layui-tab-brief" lay-filter="subtab">
        {include file="common/tab_nav"}
        <div class="layui-tab-content"></div>
    </div>

    <div class="item">

            {volist name="data.data" id="item" empty="$empty" }
            <div class="layui-row layui-col-space15">
                {empty name="$item.pic"}
                <!--<img width="240" height="170" src="__INDEX__/img/default.jpg" alt="暂时没有缩略图">-->
                {else /}
                <img width="240" height="170" src="{$item.pic}" alt="{$item.title}">
                {/empty}
                <div class="item-content" style="height: 170px;">
                    <h3>{$item.title}</h3>
                    {volist name=":explode(',',$item.keywords)" id="v"}
                    <a target="_self" href="/search/search_name/{$v}.html"><span class="Subtitle">{$v}</span></a>
                    {/volist}
                    <br/>

                    <p>{$item.digest}</p>
                    <a target="_self" href="/article/read/{$item.id}.html" target="_blank" title="{$item.title}">
                        <button class="layui-btn">阅读全文</button>
                    </a>
                </div>
                <div class="date-box">
                    <div class="date">
                        <h4>{$item.create_time|date="d",###}</h4>
                        <span>{$item.create_time|date="Y/m",###}</span>
                    </div>
                </div>
            </div>
            {/volist}

    </div>

    <!--分页-->
    {php}
    $pageMethod = '/article';
    {/php}
    {include file="common/page" }
</div>
